package com.xinghai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinghai.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import com.xinghai.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 用户徽章对象 jkq_user_badge
 *
 * @author xinghai
 * @date 2025-08-02
 */
@TableName("jkq_user_badge")
@EqualsAndHashCode(callSuper = true)
@Data
public class JkqUserBadge extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 徽章id */
    @Excel(name = "徽章id")
    private Long badgeId;

    @TableField(exist = false)
    @Excel(name = "徽章名称")
    private String badgeName;

    @TableField(exist = false)
    @Excel(name = "徽章logo")
    private String badgeImage;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    @TableField(exist = false)
    @Excel(name = "用户昵称")
    private String userName;

    @TableField(exist = false)
    @Excel(name = "用户头像")
    private String userImage;

    /** 状态 */
    @Excel(name = "状态", dictType = "sys_show_hide")
    private String status;

    /** 删除标志 */
    @TableLogic
    private String delFlag;

    @Excel(name = "获得时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 活跃天数 */
    @Excel(name = "健康管理师昵称")
    @TableField(exist = false)
    private String healthUserName;

    /** 活跃天数 */
    @Excel(name = "健康管理师id")
    @TableField(exist = false)
    private Long healthUserId;
}
